<template>
  <svg :aria-hidden="true">
    <use :class="fillClass" :xlink:href="symbolId" :fill="color"></use>
  </svg>
</template>
<script setup>
import { computed } from 'vue'
const props = defineProps({
  name: {
    type: String,
    default: ''
  },
  fillClass: {
    type: String,
    default: ''
  },
  color: {
    type: String,
    default: '#fff'
  }
})
const symbolId = computed(() => {
  return `#icon-${props.name}`
})
</script>
